<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改项目信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-xmxx-edit" th:object="${tGgXmxx}">
            
            <div class="form-group">    
                <label class="col-sm-3 control-label">项目编码：</label>
                <div class="col-sm-8">
                    <input name="xmmc" th:field="*{xmbm}" class="form-control" type="text" readonly required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">项目名称：</label>
                <div class="col-sm-8">
                    <input name="xmmc" th:field="*{xmmc}" class="form-control" type="text" required>
                </div>
            </div>
             <div class="form-group">    
                <label class="col-sm-3 control-label">上级编码：</label>
                <div class="col-sm-8">
                    <div class="input-group">
                        <input id="treeId" name="sjxmbm" type="hidden" th:field="*{sjxmbm}" />
                        <input class="form-control" type="text" onclick="selectXmxxTree()" id="treeName" readonly="true" th:field="*{parentName}">
                        <span class="input-group-addon"><i class="fa fa-search"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">计量单位：</label>
                <div class="col-sm-8">
                    <input name="jldw" th:field="*{jldw}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">收入类别编码：</label>
                <div class="col-sm-8">
                    <input name="srlbbm" th:field="*{srlbbm}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">收入类别名称：</label>
                <div class="col-sm-8">
                    <input name="srlbmc" th:field="*{srlbmc}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">收支分类科目编码：</label>
                <div class="col-sm-8">
                    <input name="yskmbm" th:field="*{yskmbm}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">收支分类科目名称：</label>
                <div class="col-sm-8">
                    <input name="yskmmc" th:field="*{yskmmc}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">标准上限：</label>
                <div class="col-sm-8">
                    <input name="sfsx" th:field="*{sfsx}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">标准下限：</label>
                <div class="col-sm-8">
                    <input name="sfxx" th:field="*{sfxx}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">停用日期：</label>
                <div class="col-sm-8">
                    <input name="zzsj" th:field="*{zzsj}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">管理类型：</label>
                <div class="col-sm-8">
                    <input name="gllx" th:field="*{gllx}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">项目层级：</label>
                <div class="col-sm-8">
                    <input name="xmcj" th:field="*{xmcj}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否底级项目：</label>
                <div class="col-sm-8">
                    <input name="sfdj" th:field="*{sfdj}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">分成标志：</label>
                <div class="col-sm-8">
                    <input name="fcbz" th:field="*{fcbz}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">分成基数：</label>
                <div class="col-sm-8">
                    <input name="fcjs" th:field="*{fcjs}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">分成特殊标志：</label>
                <div class="col-sm-8">
                    <input name="fctsbz" th:field="*{fctsbz}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">中央分成：</label>
                <div class="col-sm-8">
                    <input name="zyfc" th:field="*{zyfc}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">省级分成：</label>
                <div class="col-sm-8">
                    <input name="sejfc" th:field="*{sejfc}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">市级分成：</label>
                <div class="col-sm-8">
                    <input name="sijfc" th:field="*{sijfc}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">县级分成：</label>
                <div class="col-sm-8">
                    <input name="xjfc" th:field="*{xjfc}" class="form-control" type="text">
                </div>
            </div>
          
            <div class="form-group">    
                <label class="col-sm-3 control-label">启用标志：</label>
                <div class="col-sm-8">
                    <input name="qybz" th:field="*{qybz}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">有效标志：</label>
                <div class="col-sm-8">
                    <input name="yxbz" th:field="*{yxbz}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/xmxx";
        $("#form-xmxx-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-xmxx-edit').serialize());
            }
        }

        /*项目信息-新增-选择父部门树*/
        function selectXmxxTree() {
            var options = {
                title: '项目信息选择',
                width: "380",
                url: prefix + "/selectXmxxTree/" + $("#treeId").val(),
                callBack: doSubmit
            };
            $.modal.openOptions(options);
        }

        function doSubmit(index, layero){
            var body = layer.getChildFrame('body', index);
               $("#treeId").val(body.find('#treeId').val());
               $("#treeName").val(body.find('#treeName').val());
               layer.close(index);
        }
    </script>
</body>
</html>